/**
 *  Copyright (C) 2023 - Fake Inc.
 *
 *  All Rights Reserved.

*/
#include "c_module.h"
#include <stddef.h>
#include <unistd.h>

static InnoLogCallback log_cb_s = NULL;
void register_callback(InnoLogCallback log_cb) {
  log_cb_s = log_cb;
}

void start_c_module(void) {
  while (1) {
    if (log_cb_s != NULL) {
      log_cb_s("start_c_module", "start_c_module", 100, INNO_LOG_LEVEL_INFO, "fake log");
    }
    (void)sleep(1);
  }
}
